package zh.keep.all.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import zh.keep.all.Utils

/**
 * 开机广播拉起
 */
class StartUpReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        Log.d("TAG", "监听广播: " + intent.action)
        when (intent.action) {
            Intent.ACTION_BOOT_COMPLETED -> {
                //开机广播拉起
                Utils.startService()
            }
            else -> {}
        }
    }
}